#include "paintitem.h"

PaintItem::PaintItem(QQuickPaintedItem *parent) : QQuickPaintedItem(parent)
{
    //默认图片
    //m_imageThumb = QImage(":/png/blue_back.png");
}

void PaintItem::updateImage(const QImage &image)
{
    m_imageThumb = image;
    update();
}

void PaintItem::paint(QPainter *painter)
{
    painter->drawImage(this->boundingRect(), m_imageThumb);
}
